﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace todo.Model
{
    [ComVisible(true)]
    [Serializable]
    public class Todo
    {
        public string Id { get; set; }

        public string Title { get; set; }
        public int Progress { get; set; }
        public string Due { get; set; }
        public string Description { get; set; }

        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public DateTime CheckTime { get; set; }

        public int Checked { get; set; }
        public int Active { get; set; }
        public List<Todo> Todos { get; set; }
        public DisplayStyle DisplayStyle { get; set; }

        public List<Reminder> Reminders { get; set; }
        public List<string> Tags { get; set; }
        public string Color { get; set; }
        public int Priority { get; set; }

        //trasient
        public bool Collapsed { get; set; }
        public Todo Parent { get; set; }
        public bool IsLastChild { get; set; }
    }
}